package com.yiduo.outpost.core.model.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * 弹框提示信息
 *
 * @author: xuhainan
 * @create: 2020-06-30 13:47
 **/
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public class ServerErrorException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * The replacement values for placeholders,
     */
    protected Object[] args;

    public ServerErrorException(String message) {
        super(message);
    }

    public ServerErrorException(String message, Object... args) {
        super(message);
        this.args = args;
    }

    public ServerErrorException(String message, Throwable cause, Object... args) {
        super(message, cause);
        this.args = args;
    }

    public Object[] getArgs() {
        return this.args;
    }

}
